<?php

namespace addons\Dining\common\enums;
use common\enums\BaseEnum;
/**
 * 枚举
 *
 * Class GenderEnum
 * @package common\enums
 * @author YiiFrame <21931118@qq.com>
 */
class DiningEnum extends BaseEnum
{
    const Breakfast = 0;
    const Lunch = 1;
    const Dinner = 2;

    /**
     * @return array
     */
    public static function getMap(): array
    {
        return [
            self::Breakfast => '早餐',
            self::Lunch => '午餐',
            self::Dinner => '晚餐',
        ];
    }

    public static function getValue($key): string
    {
        return static::getMap()[$key] ?? '';
    }
}